package cn.tedu.tea.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ContentAddNewDTO implements Serializable {
    @ApiModelProperty(value = "内容详情", required = true)
    @NotNull(message = "添加内容失败，必须提交内容详情！")
    private String detail;

    @ApiModelProperty(value = "类别id", required = true)
    @NotNull(message = "添加内容失败，必须提交类别id！")
    private Integer categoryId;

    @ApiModelProperty(value = "编辑器类型", required = true)
    @NotNull(message = "添加内容失败，必须提交编辑器类型！")
    private String editor;

    @ApiModelProperty(value = "标题", required = true)
    @NotNull(message = "添加内容失败，必须提交标题！")
    private String title;

    @ApiModelProperty(value = "摘要", required = true)
    @NotNull(message = "添加内容失败，必须提交摘要！")
    private String brief;

    @ApiModelProperty(value = "关键字", required = true)
    @NotNull(message = "添加内容失败，必须提交关键字！")
    private String keywords;

    @ApiModelProperty(value = "排序号", required = true)
    @NotNull(message = "添加内容失败，必须提交排序号！")
    private Integer sort;

    @ApiModelProperty(value = "封面图", required = true)
    @NotNull(message = "添加内容失败，必须提交封面图！")
    private String coverUrl;

    @ApiModelProperty(value = "媒体类型", required = true)
    @NotNull(message = "添加内容失败，必须提交媒体类型！")
    private Integer mediaType;

    @ApiModelProperty(value = "媒体Url", required = true)
    @NotNull(message = "添加内容失败，必须提交媒体Url！")
    private String mediaUrl;

    @ApiModelProperty(value = "顶数量", required = true)
    @NotNull(message = "添加内容失败，必须提交顶数量！")
    private Integer up;

    @ApiModelProperty(value = "踩数量", required = true)
    @NotNull(message = "添加内容失败，必须提交踩数量！")
    private Integer down;

    @ApiModelProperty(value = "审核状态", required = true)
    @NotNull(message = "添加内容失败，必须提交审核状态！")
    private Integer auditStatus;

    @ApiModelProperty(value = "审核原因", required = true)
    @NotNull(message = "添加内容失败，必须提交审核原因！")
    private String auditRemark;

    @ApiModelProperty(value = "浏览量", required = true)
    @NotNull(message = "添加内容失败，必须提交浏览量！")
    private Integer clickTimes;

    @ApiModelProperty(value = "评论量", required = true)
    @NotNull(message = "添加内容失败，必须提交评论量！")
    private Integer commentTimes;

    @ApiModelProperty(value = "IP", required = true)
    @NotNull(message = "添加内容失败，必须提交IP！")
    private String ip;

    @ApiModelProperty(value = "显示状态", required = true)
    @NotNull(message = "添加内容失败，必须提交显示状态！")
    private Integer status;

    @ApiModelProperty(value = "创建人id", required = true)
    @NotNull(message = "添加内容失败，必须提交创建人id！")
    private Long createUserId;

    @ApiModelProperty(value = "创建时间", required = true)
    @NotNull(message = "添加内容失败，必须提交创建时间！")
    private Long gmtCreate;

    @ApiModelProperty(value = "更新人id", required = true)
    @NotNull(message = "添加内容失败，必须提交更新人id！")
    private Long modifiedUserId;

    @ApiModelProperty(value = "更新时间", required = true)
    @NotNull(message = "添加内容失败，必须提交更新时间！")
    private Long gmtModified;

    @ApiModelProperty(value = "创建人", required = true)
    @NotNull(message = "添加内容失败，必须提交创建人！")
    private String createUserName;

    @ApiModelProperty(value = "更新人", required = true)
    @NotNull(message = "添加内容失败，必须提交更新人！")
    private String modifiedUserName;

}
